package com.yc.yuapiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author WangJiYou
 **/
public class SignUtils {

    /**
     * 加密
     *
     * @param
     * @param secreteKey
     * @return
     */
    public static String getSign(String body, String secreteKey) {
        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String content = body+ "." + secreteKey;
        return md5.digestHex(content);
    }
}
